package com.zj.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("address")
public class Address implements Serializable {
    @TableId(value = "addressId")
    private Long addressId;  //"地址id"
    @TableField(value = "userId")
    private Long userId;  //"用户id"
    @TableField(value = "recipientName")
    private String recipientName;  //"收件人"
    @TableField(value = "phone")
    private String phone;  //"手机号
    @TableField(value = "detailedAddress")
    private String detailedAddress;  //"详细地址"
    @TableField(value = "isDefault")
    private Integer isDefault;  //"0-不是默认, 1-默认"
    @TableField(value = "addressStatus")
    private Integer addressStatus;  //"状态(0-禁用,1-正常)"
}
